#include <Arduino.h>

// put function declarations here:
int buzzer_pin = 8;
int flame_pin = 0;

void setup()
{
  // put your setup code here, to run once:
  pinMode(buzzer_pin, OUTPUT);
  Serial.begin(9600);
}

void loop()
{
  // put your main code here, to run repeatedly:
  int flame_val = analogRead(flame_pin);
  Serial.print("flame:");
  Serial.println(flame_val);
  if (flame_val < 200)
  {
    digitalWrite(buzzer_pin, LOW);
  }
  else
  {
    digitalWrite(buzzer_pin, HIGH);
  }
  
}

// put function definitions here: